package com.sen.rbac.feign;

import com.sen.common.common.response.MessageResult;
import com.sen.rbac.vo.SysTenantVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 江传明
 * 租户信息，对外提供接口
 */
@FeignClient(name = "linsir-sen-rbac")
public interface RbacTenantFeign {

    @GetMapping(value = "/tenant/get")
    MessageResult<SysTenantVO> get(@RequestParam("tenantCode") String tenantCode);

    @GetMapping(value = "/tenant/getTenantList")
    MessageResult<List<SysTenantVO>> getTenantList();

}
